//
//  ViewDiary.m
//  iTimeline
//
//  Created by Mobioneer HV 02 on 1/10/13.
//  Copyright (c) 2013 Mobioneer Co., Ltd. All rights reserved.
//

#import "ViewDiary.h"

@interface ViewDiary ()
@property (weak, nonatomic) IBOutlet UILabel *lblDate;
@property (weak, nonatomic) IBOutlet UITextView *txtContent;

@end

@implementation ViewDiary

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.txtContent.text = self.data.context;
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    // [dateFormatter setDateStyle:NSDateFormatterLongStyle];
    [dateFormatter setDateFormat:@"cccc - dd/MM/yyyy"];
    NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"vi_VN"];
    [dateFormatter setLocale:usLocale];
    self.lblDate.text = [dateFormatter stringFromDate:self.data.date];
    self.navigationItem.title = @"View Diary";
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
